user='wangmingjian'
passwd=123456
count=0
for i in range(3):
    inputuser=input("请输入用户名")
    inputpasswd=input("请输入密码")
    if user==inputuser:
        if passwd==int(inputpasswd):
            print("登陆成功")
            break
    else:
        i += 1
        if i < 3:
            print("请重新输入")
            continue
        else:
            print("输入错误已达三次，自动退出")
            break

# good